package com.herui.ota.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.herui.ota.entity.Device;
import com.herui.ota.pojo.form.DeviceForm;
import org.shan.base.layer.user.service.IBaseService;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

/**
 * author name: amanda.shan
 * create time: 2023-10-26 16:51:33
 */ 
public interface DeviceService extends IBaseService<Device> {

    void saveDevice(HttpServletRequest request, DeviceForm deviceForm);

    int allDeviceCount();
    void resetTree();

    Date activeDevice(String bluName);

    /**
     * 设备升级结果
     * @param bluName
     * @param sucess
     */
    void upgradeDevice(String bluName, boolean sucess);
}

